{php}
$ljfs = '_';
$jlf = '_';
$seokey=$zbp->Config('ytecn_pjax')->seokey;
$seodes=$zbp->Config('ytecn_pjax')->seodes;
{/php}
{if $type=='index' &&$page=='1'}
<title>{$zbp->Config('ytecn_pjax')->seoname}</title>
<meta name="keywords" content="{$seokey}">
<meta name="description" content="{$seodes}">
{elseif $type=='index'}
{$subname}{$jlf}第{$pagebar.PageNow}页{$jlf}{$name}
<meta name="keywords" content="{$seokey}">
<meta name="description" content="{$seodes}">
{elseif $type=='category'}
{php}
if($category->Metas->tc_title){
    $ztitle=$category->Metas->tc_title;
}else{
    $ztitle=$category->Name.$jlf.$name;
}
if($category->Metas->tc_keywords){
    $keywords =$category->Metas->tc_keywords;
}else{
    $keywords = $category->Name;
}
if($category->Metas->tc_description){
    $description=$category->Metas->tc_description;
}else{
    $description = $category->Intro;
}
{/php}
<title>{$ztitle}</title>
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$description}" />
{elseif $type=='article'}
<title>{if $article.Metas.tc_title}{$article.Metas.tc_title}{else}{$title}{$jlf}{$article.Category.Name}{$jlf}{$name}{/if}</title>
{php}
if($article->Metas->tc_keywords){
    $keywords =$article->Metas->tc_keywords;
}else{
    if($article->TagsCount){
        $keywords = $article->TagsName.",".$article->Category->Name;
    }else{
        $keywords = $article->Category->Name;
    }
}
if($article->Metas->tc_description){
    $description =$article->Metas->tc_description;
}else{
    $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
}
{/php}
<meta name="keywords" content="{$keywords}"/>
<meta name="description" content="{$description}"/>
<meta name="author" content="{$article.Author.StaticName}">
{elseif $type=='page'}
<title>{if $article.Metas.tc_title}{$article.Metas.tc_title}{else}{$title}{/if}{$jlf}{$name}</title>
{php}
if($article->Metas->tc_keywords){
    $keywords =$article->Metas->tc_keywords;
}else{
    $keywords = $title.",".$name;
}
if($article->Metas->tc_description){
    $description =$article->Metas->tc_description;
}else{
    $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
}
{/php}
<meta name="keywords" content="{$keywords}"/>
<meta name="description" content="{$description}"/>
<meta name="author" content="{$article.Author.StaticName}">
{elseif $type=='tag'}
<title>{if $tag.Metas.tc_title}{$tag.Metas.tc_title}{else}{$tag.Name}{/if}{if $page>'1'}{$jlf}第{$pagebar.PageNow}页{$jlf}{$name}{/if}</title>
{php}
if($tag->Metas->tc_keywords){
    $keywords =$tag->Metas->tc_keywords;
}else{
    $keywords = $tag->Name.",".$name;
}
if($tag->Metas->tc_description){
    $description =$tag->Metas->tc_description;
}else{
    $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($tag->Intro,'[nohtml]'),135)).'...');
}
{/php}
<meta name="keywords" content="{$keywords}"/>
<meta name="description" content="{$description}"/>
{elseif $type=='author'}
<title>{if $author.Metas.tc_title}{$author.Metas.tc_title}{else}{$author.StaticName}{/if}{if $page>'1'}{$jlf}第{$pagebar.PageNow}页{$jlf}{$name}{/if}</title>
{php}
if($author->Metas->tc_keywords){
    $keywords =$author->Metas->tc_keywords;
}else{
    $keywords = $author->StaticName.",".$name;
}
if($author->Metas->tc_description){
    $description =$author->Metas->tc_description;
}else{
    $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($author->Intro,'[nohtml]'),135)).'...');
}
{/php}
<meta name="keywords" content="{$keywords}"/>
<meta name="description" content="{$description}"/>
{else}
<title>{$title}{$jlf}{$name}</title>
<meta name="keywords" content="{$seokey}">
<meta name="description" content="{$seodes}">
{/if}